<!DOCTYPE html>
<html>
<head>
    <script type="text/javascript" src="/static/js/jquery-3.5.1.min.js"></script>

    <link rel="stylesheet" type="text/css" href="/static/layui/css/layui.css"/>
    <script type="text/javascript"src="/static/layui/layui.js"></script>
    <meta charset="utf-8">
    <title></title>
</head>
<script type="text/javascript">

    function toreg() {
        location.href="/user/toReg"
    }
    function toLogin2() {
        location.href="/user/toLogin2"
    }

</script>
<body>
<form class="layui-form" action="/user/login" method="post">
    <div style="margin-top: 12%;margin-left: 30%;">
        <label class="layui-form-label">账号：</label>
        <div class="layui-input-inline">
            <input type="text" name="userName" required lay-verify="required" placeholder="请输入账户" autocomplete="off" class="layui-input">
        </div>
        <br />
        <label class="layui-form-label">验证码：</label>
        <div class="layui-input-inline">
            <input type="password" name="passWord" required lay-verify="required" placeholder="请输入密码" autocomplete="off" class="layui-input">
        </div>


        <div class="layui-form-item">
            <a onclick="toLogin2()">验证码登录</a>
            <div class="layui-input-block">
                <button class="layui-btn " lay-submit lay-filter="formDemo">立即提交</button>
                <button onclick="toreg()" type="reset" class="layui-btn layui-btn-primary">注册</button>
            </div>
        </div>
    </div>
</form>


</body>
</html>
